package com.opgea.token.web.controller;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component("welcome")
@Scope("session")
public class WelcomeController {

    // @Autowired
    // private LoginService loginService;

    private String message;
    private int userCount;

    public String getMessage() {
	return message;
    }

    public void setMessage(String message) {
	this.message = message;
    }

    public int getUserCount() {
	return userCount;
    }

    public void setUserCount(int userCount) {
	this.userCount = userCount;
    }

    public String save() {
	// this.userCount = loginService.findAll().size();
	return "success.xhtml";
    }
}
